package edu.friday.controller;

import edu.friday.model.SysRole;
import edu.friday.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/role")
public class SysRoleController {
    @Autowired
    SysRoleService sysRoleService;
    @GetMapping("/list")
    public List<SysRole> list(){
        return sysRoleService.selectRolelist();
    }
}
